package com.ruoyi.web.controller.common;


import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lgq
 */
@RestController
@RequestMapping("/time")
public class TimeController {

    /**
     * 获取服务器时间
     */
    @GetMapping(value = "/server")
    public AjaxResult getInfo()
    {
        return AjaxResult.success(System.currentTimeMillis());
    }

}
